class diamond{
    public id:number;
    public name:string;
    public health:number;
    public attack:number;
    public posID:number;//1火，2黑
    public criticalPer:number;
    public defence:number;

    public suitID:number;
    public suitDefence:number;
    public suitAttack:number;
    public suitCriticaPer:number;

    constructor(id:number,name:string,health:number,attack:number,posID:number,criticalPer:number){
        this.id = id;
        this.name = name;
        this.health = health;
        this.attack = attack;
        this.posID = posID;
        this.criticalPer = criticalPer;
        this.defence = this.defence;
    }
}